﻿using Yonkly.Models;
using Yonkly.Utility;

namespace Yonkly.Views.Shared
{
    public partial class GravatarControl : System.Web.Mvc.ViewUserControl<GravatarData>
    {
        //public string Username { get; set; }
        //public string Email { get; set; }

        //private int size = 32;

        //public int Size
        //{
        //    get { return size; }
        //    set { size = value; }
        //}

        public string Gravatar
        {
            get { return Utils.GetGravatar(ViewData.Model.Email, ViewData.Model.Size); }
        }
    }
}